#include <iostream>
#define N 100

using namespace std;

int main(){

int array[N];
int i;
int max=0;
int elements;


cout<<"Type the number of elements you want in the array"<<endl;
cin>>elements;

cout<<"Type the numbers"<<endl;
for(i=0; i<elements; i++){
	cin>>array[i];}

cout<<"The original array is ";
for(i=0; i<elements; i++){
	cout<<array[i]<<" ";}
cout<<endl;

for(i=0; i<elements; i++){
	if(array[i] > max){
	max=array[i];}
}
	
cout<<"The maximum number of the array is: "<< max << endl;

cout<<"The position(s) on which it occurs :";
for(i=0; i<elements; i++){
	if(array[i]==max){
		cout<< i<< " ";}
}
cout<<endl;

return 0;
}
